﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NumberLoacation
{
    class PhoneNum : INotifyPropertyChanged
    {
        private string numLocation;
        public string StartNumber { get; set; }
        public string City { get; set; }
        public string TelType { get; set; }
        public string NumLocation { 
            get
            {
                return numLocation;
            }
            set
            {
                this.numLocation=value;
                if (PropertyChanged!=null)
                {
                    PropertyChanged(this,new PropertyChangedEventArgs("NumLocation"));
                }
            }
        
        }   //用于数据绑定，显示City+TelType
        public event PropertyChangedEventHandler PropertyChanged;
    }
}
